Integrand size = 28, antiderivative size = 258 \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\frac {363 (-1)^{3/4} a^{5/2} \arctan \left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{64 d}+\frac {(4+4 i) a^{5/2} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d} \]
[Out]
Time = 0.92 (sec) , antiderivative size = 258, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.321, Rules used = {3637, 3678, 3682, 3625, 211, 3680, 65, 223, 209} \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\frac {363 (-1)^{3/4} a^{5/2} \arctan \left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{64 d}+\frac {(4+4 i) a^{5/2} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}-\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d} \]
[In]
[Out]
Rule 65
Rule 209
Rule 211
Rule 223
Rule 3625
Rule 3637
Rule 3678
Rule 3680
Rule 3682
Rubi steps \begin{align*} \text {integral}& = -\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {1}{4} a \int \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)} \left (\frac {15 a}{2}+\frac {17}{2} i a \tan (c+d x)\right ) \, dx \\ & = \frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {1}{12} \int \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)} \left (-\frac {85 i a^2}{4}+\frac {107}{4} a^2 \tan (c+d x)\right ) \, dx \\ & = \frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {\int \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)} \left (-\frac {321 a^3}{8}-\frac {447}{8} i a^3 \tan (c+d x)\right ) \, dx}{24 a} \\ & = -\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}+\frac {\int \frac {\sqrt {a+i a \tan (c+d x)} \left (\frac {447 i a^4}{16}-\frac {1089}{16} a^4 \tan (c+d x)\right )}{\sqrt {\tan (c+d x)}} \, dx}{24 a^2} \\ & = -\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}-\frac {1}{128} (363 i a) \int \frac {(a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx+\left (4 i a^2\right ) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx \\ & = -\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}-\frac {\left (363 i a^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {x} \sqrt {a+i a x}} \, dx,x,\tan (c+d x)\right )}{128 d}+\frac {\left (8 a^4\right ) \text {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d} \\ & = \frac {(4+4 i) a^{5/2} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}-\frac {\left (363 i a^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+i a x^2}} \, dx,x,\sqrt {\tan (c+d x)}\right )}{64 d} \\ & = \frac {(4+4 i) a^{5/2} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}-\frac {\left (363 i a^3\right ) \text {Subst}\left (\int \frac {1}{1-i a x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{64 d} \\ & = \frac {363 (-1)^{3/4} a^{5/2} \arctan \left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{64 d}+\frac {(4+4 i) a^{5/2} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d} \\ \end{align*}
Time = 6.49 (sec) , antiderivative size = 475, normalized size of antiderivative = 1.84 \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\frac {4 \sqrt {2} a^2 \text {arctanh}\left (\frac {\sqrt {2} \sqrt {i a \tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)}}-\frac {4 a^{5/2} \text {arcsinh}\left (\frac {\sqrt {i a \tan (c+d x)}}{\sqrt {a}}\right ) \sqrt {1+i \tan (c+d x)} \sqrt {i a \tan (c+d x)}}{d \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {43 \sqrt [4]{-1} a^2 \text {arcsinh}\left (\sqrt [4]{-1} \sqrt {\tan (c+d x)}\right ) \sqrt {a+i a \tan (c+d x)}}{64 d \sqrt {1+i \tan (c+d x)}}-\frac {149 i a^2 \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{64 d}+\frac {107 a^2 \tan ^{\frac {3}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{96 d}+\frac {17 i a^2 \tan ^{\frac {5}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{24 d}-\frac {a^2 \tan ^{\frac {7}{2}}(c+d x) \sqrt {a+i a \tan (c+d x)}}{4 d}-\frac {a^{3/2} \text {arcsinh}\left (\frac {\sqrt {i a \tan (c+d x)}}{\sqrt {a}}\right ) \sqrt {i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{d \sqrt {1+i \tan (c+d x)} \sqrt {\tan (c+d x)}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 491 vs. \(2 (204 ) = 408\).
Time = 1.00 (sec) , antiderivative size = 492, normalized size of antiderivative = 1.91
method | result | size |
derivativedivides | \(-\frac {\left (\sqrt {\tan }\left (d x +c \right )\right ) \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, a^{2} \left (96 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}\, \left (\tan ^{3}\left (d x +c \right )\right )-272 i \sqrt {-i a}\, \sqrt {i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \left (\tan ^{2}\left (d x +c \right )\right )+384 i \sqrt {2}\, \sqrt {i a}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}-i a +3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) a +384 \sqrt {2}\, \sqrt {i a}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}-i a +3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) a +1089 i \sqrt {-i a}\, \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) a +894 i \sqrt {-i a}\, \sqrt {i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}-428 \sqrt {-i a}\, \sqrt {i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \tan \left (d x +c \right )+1536 \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) a \sqrt {-i a}\right )}{384 d \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}}\) | \(492\) |
default | \(-\frac {\left (\sqrt {\tan }\left (d x +c \right )\right ) \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, a^{2} \left (96 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}\, \left (\tan ^{3}\left (d x +c \right )\right )-272 i \sqrt {-i a}\, \sqrt {i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \left (\tan ^{2}\left (d x +c \right )\right )+384 i \sqrt {2}\, \sqrt {i a}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}-i a +3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) a +384 \sqrt {2}\, \sqrt {i a}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}-i a +3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) a +1089 i \sqrt {-i a}\, \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) a +894 i \sqrt {-i a}\, \sqrt {i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}-428 \sqrt {-i a}\, \sqrt {i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \tan \left (d x +c \right )+1536 \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) a \sqrt {-i a}\right )}{384 d \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}}\) | \(492\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 769 vs. \(2 (192) = 384\).
Time = 0.27 (sec) , antiderivative size = 769, normalized size of antiderivative = 2.98 \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\int { {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \tan \left (d x + c\right )^{\frac {5}{2}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \tan ^{\frac {5}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\int {\mathrm {tan}\left (c+d\,x\right )}^{5/2}\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2} \,d x \]
[In]
[Out]